package com.xiti.student.base.entity;

import com.baomidou.mybatisplus.annotations.*;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 短信验证码
 * </p>
 *
 * @author tangz
 * @since 2018-06-11
 */
@ApiModel(value = "MobileCode", description = "短信验证码")
@TableName("tb_base_mobile_code")
public class MobileCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "id", value = "主键ID", dataType = "Integer", notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "mobile", value = "手机号", dataType = "String", notes = "")
    private String mobile;

    @ApiModelProperty(name = "code", value = "验证码", dataType = "String", notes = "")
    private String code;

    @ApiModelProperty(name = "activeDate", value = "有效时间", dataType = "Date", notes = "")
    private Date activeDate;

    @ApiModelProperty(name = "types", value = "类型(10登录验证码/20注册验证码/30修改密码验证码)", dataType = "Integer", notes = "")
    private Integer types;

    @ApiModelProperty(name = "remark", value = "说明", dataType = "String", notes = "")
    private String remark;

    @ApiModelProperty(name = "createdCode", value = "创建者账号", dataType = "String", notes = "")
    @TableField(fill = FieldFill.INSERT)
    private String createdCode;

    @ApiModelProperty(name = "createdName", value = "创建者名称", dataType = "String", notes = "")
    @TableField(fill = FieldFill.INSERT)
    private String createdName;

    @ApiModelProperty(name = "createdTime", value = "创建时间", dataType = "Date", notes = "")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(name = "lastCode", value = "最后更新者账号", dataType = "String", notes = "")
    @TableField(fill = FieldFill.UPDATE)
    private String lastCode;

    @ApiModelProperty(name = "lastName", value = "最后更新者名称", dataType = "String", notes = "")
    @TableField(fill = FieldFill.UPDATE)
    private String lastName;

    @ApiModelProperty(name = "lastTime", value = "最后更新时间", dataType = "Date", notes = "")
    @TableField(fill = FieldFill.UPDATE)
    private Date lastTime;

    @ApiModelProperty(name = "deleteFlag", value = "删除标记0未删除1已删除", dataType = "Integer", notes = "")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(name = "version", value = "版本号", dataType = "Integer", notes = "")
    @Version
    private Integer version;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    public Integer getTypes() {
        return types;
    }

    public void setTypes(Integer types) {
        this.types = types;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreatedCode() {
        return createdCode;
    }

    public void setCreatedCode(String createdCode) {
        this.createdCode = createdCode;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastCode() {
        return lastCode;
    }

    public void setLastCode(String lastCode) {
        this.lastCode = lastCode;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
